package com.cinc.mdm.modules.processRoute.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.mdm.modules.processRoute.entity.MdmProcessRouteClass;
import com.cinc.mdm.modules.processRoute.entity.MdmProcessRouteDetail;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: mdm_process_route_class
 * @Author: jeecg-boot
 * @Date:   2024-05-04
 * @Version: V1.0
 */
public interface IMdmProcessRouteClassService extends IService<MdmProcessRouteClass> {

    void saveMain(MdmProcessRouteClass mdmProcessRouteClass, List<MdmProcessRouteDetail> processRouteDetailList);

    void updateMain(MdmProcessRouteClass mdmProcessRouteClass, List<MdmProcessRouteDetail> processRouteDetailList);

    /**
     * 删除一对多
     */
    public void delMain(String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain(Collection<? extends Serializable> idList);

    String generateClassNo(String mainId, String pid);
}
